//
//  NovaIntValueFormatter.swift
//  NovaRings
//
//  Created by 李然 on 2023/3/6.
//

import Foundation

class NovaYAxisHourValueFormatter: NSObject, NovaYAxisValueFormatter {
    func string(at index: Double) -> String {
        if index == 360 {
            return "6"
        }
        if index == 360 * 2 {
            return "12"
        }
        if index == 360 * 3 {
            return "18"
        }
        if index == 360 * 4 {
            return "24"
        }
        return ""
    }
    
    func isDottedLineShow(at index: Double) -> Bool {
        if index == 360 * 4 {
            return false
        }
        return true
    }
}
